import http, { get, post, put } from '@/service/index';
import { type LoginParams } from '@/api/auth/types';
http; // 只是为了 不报错
get;
post;
put;

/**
 * 获取验证码
 */
export function getCaptchaApi(key: string): Promise<any> {
  return get(`/sys/randomImage/${key}`);
}

/**
 * 登录
 */
export function logingApi(data: LoginParams): Promise<any> {
  return post('/sys/login', data);
}
